package com.sailorj.itools.constants;

import java.util.HashMap;
import java.util.Map;

public class ParserMapConstants {

    public static final Map<String, String> TEMPLATE_MAP = new HashMap<String, String>() {
        {
            put("po/%sEntity.java", "template/entity.java.vm");
            put("mapper/%sMapper.java", "template/mapper.java.vm");
            put("mapper/%sMapper.xml", "template/mapper.xml.vm");
        }
    };


    public static final Map<String, String> JDBC_TYPE_MAP = new HashMap<String, String>() {{
        put("CHAR", "String");
        put("VARCHAR", "String");
        put("LONGVARCHAR", "String");
        put("NUMERIC", "java.math.BigDecimal");
        put("DECIMAL", "java.math.BigDecimal");
        put("BIT", "boolean");
        put("BOOLEAN", "boolean");
        put("TINYINT", "Integer");
        put("SMALLINT", "Integer");
        put("INTEGER", "Integer");
        put("BIGINT", "Integer");
        put("REAL", "float");
        put("FLOAT", "double");
        put("DOUBLE", "double");
        put("BINARY", "byte[]");
        put("VARBINARY", "byte[]");
        put("LONGVARBINARY", "byte[]");
        put("DATE", "String");
        put("TIME", "String");
        put("TIMESTAMP", "String");
        put("CLOB", "java.sql.Clob");
        put("BLOB", "java.sql.Blob");
        put("ARRAY", "java.sql.Array");
        put("DISTINCT", "mapping of underlying type");
        put("STRUCT", "java.sql.Struct");
        put("REF", "java.sql.Ref");
        put("DATALINK", "java.net.URL");
    }};

}
